import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import { registerMicroApps, start } from 'qiankun';

registerMicroApps([
  {
    name: 'vue1',
    entry: '//localhost:5174',
    container: '#childContainer',
    activeRule: '/child/vue1',
  },
  {
    name: 'vue2',
    entry: '//localhost:5175',
    container: '#childContainer',
    activeRule: '/child/vue2',
  },
]);

const app = createApp(App)

app.use(createPinia())
app.use(router)

app.mount('#app')


start();